//nrm npm i nrm -g 
//nrm installl in global.

const url = require('url')
const axios = require('axios')
const express = require('express')

let str = 'https://naotu.baidu.com/file/c9fd736c7a05d96231a3fa738d7a8c0f/?name=zs&age=18'

/* let obj = url.parse(str)
console.log(obj)
console.log(obj.query) */

/* const Url = require('url-parse')
let obj = Url(str,true)
console.log(obj)
console.log(obj.query) */

/* const Url = require('url-parse')
let obj = Url(str,true)
console.log(obj.query) */

/* const Url = require('url-parse')
let obj = Url(str,true)
console.log(obj.query) */

const qs = require('qs')
var noSparse = qs.parse('a[1]=b&a[15]=c');
var obj = qs.parse(str);
console.log(noSparse)
console.log(obj)
var obj1 = qs.parse('name=zs&age=10')
console.log(obj1)